﻿@namespace CyssBlazor.Shared.Components
@inherits BaseValidateComponent<string>
@using BootstrapBlazor.Components

<BootstrapInputNumber @bind-Value=ObjValue DisplayText=@this.DisplayText ShowLabel=@this.ShowLabel></BootstrapInputNumber>

@code
{
    public double ObjValue
    {
        set
        {
            this.Value = value.ToString();
        }
        get
        {
            if (string.IsNullOrWhiteSpace(this.Value))
            {
                return 0;
            }
            return double.Parse(this.Value);
        }
    }

}